package com.x.compute.entity;

import com.x.compute.common.constant.VarTypeEnum;
import com.x.compute.core.annotation.ComputeTable;
import com.x.compute.core.annotation.ComputeVar;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author xuxin
 */
@Data
@ComputeTable(id = "product", name = "商品")
public class Product {
    /**
     * id
     */
    private Long id;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 名称
     */
    @ComputeVar(type = VarTypeEnum.STRING, column = true)
    private String name;
    /**
     * 数量
     */
    @ComputeVar(type = VarTypeEnum.NUMBER, sum = true, column = true)
    private Long quantity;
    /**
     * 单价
     */
    @ComputeVar(type = VarTypeEnum.NUMBER, sum = true, column = true)
    private Long unitPrice;

}
